home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 522 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  640 b 

  1. Subject: gethostname library function
  2. Date: Wed, 06 Oct 93 16:43:08 +0100
  3. From: sjg
  4. X-Mts: smtp
  5.  
  6.  
  7. Looking at the function in the library, it seems to do the following:
  8.  
  9.     o Check for a HOSTNAME environment variable
  10.     o Look for a file /local/hostname and use the contents
  11.  
  12. I think it would be more unix-like to reverse the order of those 2
  13. things, and make the file /etc/hostname rather than /local/hostname.
  14. I suppose to maintain compatibility, it will have to do:
  15.  
  16.     o Look for a file /etc/hostname and use the contents
  17.     o Check for a HOSTNAME environment variable
  18.     o Look for a file /local/hostname and use the contents
  19.  
  20. Comments ?
  21.  
  22. Simon.
  23.